import urllib2
import cookielib

url = 'http://localhost:8080/eventplanner/rest/user/isloggedin/'
cookiejar = cookielib.LWPCookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookiejar))
urllib2.install_opener(opener)
req = urllib2.Request(url)

handle = urllib2.urlopen(req)
print cookiejar._cookies

for c in cookiejar:
    print c

"""
{'localhost.local':
    {'/eventplanner':
        {'JSESSIONID':
            Cookie(version=0,
            name='JSESSIONID',
            value='0cYkiece65S+M8j75fK0r4cr.undefined',
            port=None,
            port_specified=False,
            domain='localhost.local',
            domain_specified=False,
            domain_initial_dot=False,
            path='/eventplanner',
            path_specified=True,
            secure=False,
            expires=None,
            discard=True,
            comment=None,
            comment_url=None,
            rest={},
            rfc2109=False)
        }
    }
}
"""